home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Encarta World Atlas 1999 / Encarta World 99 Install Disk.iso / evg / Flights / SoundsAF.js < prev    next >
Encoding:
JavaScript  |  1998-09-01  |  14.0 KB  |  307 lines

  1. /*****************************************************************************
  2.  SoundsAF.js
  3.  
  4.  Encarta Virtual Globe 1999
  5.  
  6.  (c) Copyright Microsoft Corporation 1998
  7.  
  8.  Populates the sound table for Africa. The sound table is comprised
  9.  of a Lat,Long location where the sound is associated with, and an index
  10.  number into the Audio Man control which has the path to the actual sound 
  11.  file. See FlightSounds.xls for the table of sound file and Lat,Long 
  12.  matchings.
  13.  
  14.  Also includes fusion related variables declarations and functions
  15.  because the number of fusion nodes vary between Fly files.
  16.  
  17.  This file is to be included by FlyAfr.htm
  18.  
  19.  Owner = WHsu
  20. *****************************************************************************/
  21. var g_numFusionSrcNodes = 13;
  22. var g_FusionSrcNodes = new Array(g_numFusionSrcNodes);            // node object for Fusion URLWav
  23. var g_fFusionSrcNodeLoaded = new Array(g_numFusionSrcNodes);    // if set, node loaded
  24.  
  25. function LoadFusionMedia()
  26. {
  27.     var i;
  28.     for ( i=0; i < g_numFusionSrcNodes; i++ )
  29.     {
  30.         g_fFusionSrcNodeLoaded[i] = false;
  31.     }
  32.     g_FusionSrcNodes[0]  = MediaGraph.Nodes("FusionSrcA");
  33.     g_FusionSrcNodes[1]  = MediaGraph.Nodes("FusionSrcB");
  34.     g_FusionSrcNodes[2]  = MediaGraph.Nodes("FusionSrcC");
  35.     g_FusionSrcNodes[3]  = MediaGraph.Nodes("FusionSrcD");
  36.     g_FusionSrcNodes[4]  = MediaGraph.Nodes("FusionSrcE");
  37.     g_FusionSrcNodes[5]  = MediaGraph.Nodes("FusionSrcF");
  38.     g_FusionSrcNodes[6]  = MediaGraph.Nodes("FusionSrcG");
  39.     g_FusionSrcNodes[7]  = MediaGraph.Nodes("FusionSrcH");
  40.     g_FusionSrcNodes[8]  = MediaGraph.Nodes("FusionSrcI");
  41.     g_FusionSrcNodes[9]  = MediaGraph.Nodes("FusionSrcJ");
  42.     g_FusionSrcNodes[10] = MediaGraph.Nodes("FusionSrcK");
  43.     g_FusionSrcNodes[11] = MediaGraph.Nodes("FusionSrcL");
  44.     g_FusionSrcNodes[12] = MediaGraph.Nodes("FusionSrcM");
  45.  
  46.     MediaGraph.Nodes("FusionSrcA").LoadMedia(false);
  47.     MediaGraph.Nodes("FusionSrcB").LoadMedia(false);
  48.     MediaGraph.Nodes("FusionSrcC").LoadMedia(false);
  49.     MediaGraph.Nodes("FusionSrcD").LoadMedia(false);
  50.     MediaGraph.Nodes("FusionSrcE").LoadMedia(false);
  51.     MediaGraph.Nodes("FusionSrcF").LoadMedia(false);
  52.     MediaGraph.Nodes("FusionSrcG").LoadMedia(false);
  53.     MediaGraph.Nodes("FusionSrcH").LoadMedia(false);
  54.     MediaGraph.Nodes("FusionSrcI").LoadMedia(false);
  55.     MediaGraph.Nodes("FusionSrcJ").LoadMedia(false);
  56.     MediaGraph.Nodes("FusionSrcK").LoadMedia(false);
  57.     MediaGraph.Nodes("FusionSrcL").LoadMedia(false);
  58.     MediaGraph.Nodes("FusionSrcM").LoadMedia(false);
  59. }
  60.  
  61.  
  62. g_SoundTable[g_Continent_AF] = new Array(48);
  63.  
  64. g_SoundTable[g_Continent_AF][0] = new Array(3);
  65. g_SoundTable[g_Continent_AF][1] = new Array(3);
  66. g_SoundTable[g_Continent_AF][2] = new Array(3);
  67. g_SoundTable[g_Continent_AF][3] = new Array(3);
  68. g_SoundTable[g_Continent_AF][4] = new Array(3);
  69. g_SoundTable[g_Continent_AF][5] = new Array(3);
  70. g_SoundTable[g_Continent_AF][6] = new Array(3);
  71. g_SoundTable[g_Continent_AF][7] = new Array(3);
  72. g_SoundTable[g_Continent_AF][8] = new Array(3);
  73. g_SoundTable[g_Continent_AF][9] = new Array(3);
  74. g_SoundTable[g_Continent_AF][10] = new Array(3);
  75. g_SoundTable[g_Continent_AF][11] = new Array(3);
  76. g_SoundTable[g_Continent_AF][12] = new Array(3);
  77. g_SoundTable[g_Continent_AF][13] = new Array(3);
  78. g_SoundTable[g_Continent_AF][14] = new Array(3);
  79. g_SoundTable[g_Continent_AF][15] = new Array(3);
  80. g_SoundTable[g_Continent_AF][16] = new Array(3);
  81. g_SoundTable[g_Continent_AF][17] = new Array(3);
  82. g_SoundTable[g_Continent_AF][18] = new Array(3);
  83. g_SoundTable[g_Continent_AF][19] = new Array(3);
  84. g_SoundTable[g_Continent_AF][20] = new Array(3);
  85. g_SoundTable[g_Continent_AF][21] = new Array(3);
  86. g_SoundTable[g_Continent_AF][22] = new Array(3);
  87. g_SoundTable[g_Continent_AF][23] = new Array(3);
  88. g_SoundTable[g_Continent_AF][24] = new Array(3);
  89. g_SoundTable[g_Continent_AF][25] = new Array(3);
  90. g_SoundTable[g_Continent_AF][26] = new Array(3);
  91. g_SoundTable[g_Continent_AF][27] = new Array(3);
  92. g_SoundTable[g_Continent_AF][28] = new Array(3);
  93. g_SoundTable[g_Continent_AF][29] = new Array(3);
  94. g_SoundTable[g_Continent_AF][30] = new Array(3);
  95. g_SoundTable[g_Continent_AF][31] = new Array(3);
  96. g_SoundTable[g_Continent_AF][32] = new Array(3);
  97. g_SoundTable[g_Continent_AF][33] = new Array(3);
  98. g_SoundTable[g_Continent_AF][34] = new Array(3);
  99. g_SoundTable[g_Continent_AF][35] = new Array(3);
  100. g_SoundTable[g_Continent_AF][36] = new Array(3);
  101. g_SoundTable[g_Continent_AF][37] = new Array(3);
  102. g_SoundTable[g_Continent_AF][38] = new Array(3);
  103. g_SoundTable[g_Continent_AF][39] = new Array(3);
  104. g_SoundTable[g_Continent_AF][40] = new Array(3);
  105. g_SoundTable[g_Continent_AF][41] = new Array(3);
  106. g_SoundTable[g_Continent_AF][42] = new Array(3);
  107. g_SoundTable[g_Continent_AF][43] = new Array(3);
  108. g_SoundTable[g_Continent_AF][44] = new Array(3);
  109. g_SoundTable[g_Continent_AF][45] = new Array(3);
  110. g_SoundTable[g_Continent_AF][46] = new Array(3);
  111. g_SoundTable[g_Continent_AF][47] = new Array(3);
  112.  
  113. g_SoundTable[g_Continent_AF][0][g_indexLat] = 27;
  114. g_SoundTable[g_Continent_AF][0][g_indexLong] = 4;
  115. g_SoundTable[g_Continent_AF][0][g_indexSound] = 1;        // F172379A    27    4    172379 Algeria (+)
  116.  
  117. g_SoundTable[g_Continent_AF][1][g_indexLat] = -22;
  118. g_SoundTable[g_Continent_AF][1][g_indexLong] = 24;
  119. g_SoundTable[g_Continent_AF][1][g_indexSound] = 2;        // F172402A    -22    24    172402 Botswana
  120.  
  121. g_SoundTable[g_Continent_AF][2][g_indexLat] = 12;
  122. g_SoundTable[g_Continent_AF][2][g_indexLong] = -2;
  123. g_SoundTable[g_Continent_AF][2][g_indexSound] = 3;        // F172410A    12    -2    172410 Burkina Faso
  124.  
  125. g_SoundTable[g_Continent_AF][3][g_indexLat] = 4;
  126. g_SoundTable[g_Continent_AF][3][g_indexLong] = 13;
  127. g_SoundTable[g_Continent_AF][3][g_indexSound] = 4;        // F172417A    4    13    172417 Cameroon
  128.  
  129. g_SoundTable[g_Continent_AF][4][g_indexLat] = 16;
  130. g_SoundTable[g_Continent_AF][4][g_indexLong] = 24;
  131. g_SoundTable[g_Continent_AF][4][g_indexSound] = 5;        // F172420A    16    24    172420 Cape Verde
  132.  
  133. g_SoundTable[g_Continent_AF][5][g_indexLat] = 27;
  134. g_SoundTable[g_Continent_AF][5][g_indexLong] = 29;
  135. g_SoundTable[g_Continent_AF][5][g_indexSound] = 6;        // F172437A    27    29    172437 Egypt (+)
  136.  
  137. g_SoundTable[g_Continent_AF][6][g_indexLat] = 9;
  138. g_SoundTable[g_Continent_AF][6][g_indexLong] = 40;
  139. g_SoundTable[g_Continent_AF][6][g_indexSound] = 7;        // F172441A    9    40    172441 Ethiopia- (+)
  140.  
  141. g_SoundTable[g_Continent_AF][7][g_indexLat] = 8;
  142. g_SoundTable[g_Continent_AF][7][g_indexLong] = -2;
  143. g_SoundTable[g_Continent_AF][7][g_indexSound] = 8;        // F172453A    8    -2    172453 Ghana
  144.  
  145. g_SoundTable[g_Continent_AF][8][g_indexLat] = 33;
  146. g_SoundTable[g_Continent_AF][8][g_indexLong] = 55;
  147. g_SoundTable[g_Continent_AF][8][g_indexSound] = 9;        // F172479A    33    55    172479 Iran (++)
  148.  
  149. g_SoundTable[g_Continent_AF][9][g_indexLat] = 33;
  150. g_SoundTable[g_Continent_AF][9][g_indexLong] = 55;
  151. g_SoundTable[g_Continent_AF][9][g_indexSound] = 10;        // F172480A    33    55    172480 Iran (++)
  152.  
  153. g_SoundTable[g_Continent_AF][10][g_indexLat] = 7;
  154. g_SoundTable[g_Continent_AF][10][g_indexLong] = -6;
  155. g_SoundTable[g_Continent_AF][10][g_indexSound] = 11;        // F172487A    7    -6    172487 Ivory Coast
  156.  
  157. g_SoundTable[g_Continent_AF][11][g_indexLat] = 32;
  158. g_SoundTable[g_Continent_AF][11][g_indexLong] = 36;
  159. g_SoundTable[g_Continent_AF][11][g_indexSound] = 12;        // F172494A    32    36    172494 Jordan (+)
  160.  
  161. g_SoundTable[g_Continent_AF][12][g_indexLat] = 1;
  162. g_SoundTable[g_Continent_AF][12][g_indexLong] = 43;
  163. g_SoundTable[g_Continent_AF][12][g_indexSound] = 13;        // F172495A    1    43    172495 Kenya
  164.  
  165. g_SoundTable[g_Continent_AF][13][g_indexLat] = -19;
  166. g_SoundTable[g_Continent_AF][13][g_indexLong] = 46;
  167. g_SoundTable[g_Continent_AF][13][g_indexSound] = 14;        // F172504A    -19    46    172504 Madagascar
  168.  
  169. g_SoundTable[g_Continent_AF][14][g_indexLat] = -13;
  170. g_SoundTable[g_Continent_AF][14][g_indexLong] = 34;
  171. g_SoundTable[g_Continent_AF][14][g_indexSound] = 15;        // F172507A    -13    34    172507 Malawi
  172.  
  173. g_SoundTable[g_Continent_AF][15][g_indexLat] = 15;
  174. g_SoundTable[g_Continent_AF][15][g_indexLong] = -3;
  175. g_SoundTable[g_Continent_AF][15][g_indexSound] = 16;        // F172509A    15    -3    172509 Mali
  176.  
  177. g_SoundTable[g_Continent_AF][16][g_indexLat] = 15;
  178. g_SoundTable[g_Continent_AF][16][g_indexLong] = -3;
  179. g_SoundTable[g_Continent_AF][16][g_indexSound] = 17;        // F172510A    15    -3    172510 Mali
  180.  
  181. g_SoundTable[g_Continent_AF][17][g_indexLat] = 19;
  182. g_SoundTable[g_Continent_AF][17][g_indexLong] = -10;
  183. g_SoundTable[g_Continent_AF][17][g_indexSound] = 18;        // F172514A    19    -10    172514 Mauritania
  184.  
  185. g_SoundTable[g_Continent_AF][18][g_indexLat] = 32;
  186. g_SoundTable[g_Continent_AF][18][g_indexLong] = -6;
  187. g_SoundTable[g_Continent_AF][18][g_indexSound] = 19;        // F172520A    32    -6    172520 Morocco (+)
  188.  
  189. g_SoundTable[g_Continent_AF][19][g_indexLat] = 9;
  190. g_SoundTable[g_Continent_AF][19][g_indexLong] = 7;
  191. g_SoundTable[g_Continent_AF][19][g_indexSound] = 20;        // F172530A    9    7    172530 Nigeria
  192.  
  193. g_SoundTable[g_Continent_AF][20][g_indexLat] = 20;
  194. g_SoundTable[g_Continent_AF][20][g_indexLong] = 57;
  195. g_SoundTable[g_Continent_AF][20][g_indexSound] = 21;        // F172533A    20    57    172533 Oman (+)
  196.  
  197. g_SoundTable[g_Continent_AF][21][g_indexLat] = -2;
  198. g_SoundTable[g_Continent_AF][21][g_indexLong] = 30;
  199. g_SoundTable[g_Continent_AF][21][g_indexSound] = 22;        // F172553A    -2    30    172553 Rwanda
  200.  
  201. g_SoundTable[g_Continent_AF][22][g_indexLat] = 14;
  202. g_SoundTable[g_Continent_AF][22][g_indexLong] = 15;
  203. g_SoundTable[g_Continent_AF][22][g_indexSound] = 23;        // F172557A    14    15    172557 Senegal
  204.  
  205. g_SoundTable[g_Continent_AF][23][g_indexLat] = -30;
  206. g_SoundTable[g_Continent_AF][23][g_indexLong] = 25;
  207. g_SoundTable[g_Continent_AF][23][g_indexSound] = 24;        // F172563A    -30    25    172563 South Africa
  208.  
  209. g_SoundTable[g_Continent_AF][24][g_indexLat] = -30;
  210. g_SoundTable[g_Continent_AF][24][g_indexLong] = 25;
  211. g_SoundTable[g_Continent_AF][24][g_indexSound] = 25;        // F172565A    -30    25    172565 South Africa
  212.  
  213. g_SoundTable[g_Continent_AF][25][g_indexLat] = 41;
  214. g_SoundTable[g_Continent_AF][25][g_indexLong] = -3;
  215. g_SoundTable[g_Continent_AF][25][g_indexSound] = 26;        // F172566A    41    -3    172566 Spain (+)
  216.  
  217. g_SoundTable[g_Continent_AF][26][g_indexLat] = 41;
  218. g_SoundTable[g_Continent_AF][26][g_indexLong] = -3;
  219. g_SoundTable[g_Continent_AF][26][g_indexSound] = 27;        // F172569A    41    -3    172569 Spain (+)
  220.  
  221. g_SoundTable[g_Continent_AF][27][g_indexLat] = 14;
  222. g_SoundTable[g_Continent_AF][27][g_indexLong] = 29;
  223. g_SoundTable[g_Continent_AF][27][g_indexSound] = 28;        // F172573A    14    29    172573 Sudan (+)
  224.  
  225. g_SoundTable[g_Continent_AF][28][g_indexLat] = 35;
  226. g_SoundTable[g_Continent_AF][28][g_indexLong] = 38;
  227. g_SoundTable[g_Continent_AF][28][g_indexSound] = 29;        // F172577A    35    38    172577 Syria (++)
  228.  
  229. g_SoundTable[g_Continent_AF][29][g_indexLat] = -7;
  230. g_SoundTable[g_Continent_AF][29][g_indexLong] = 35;
  231. g_SoundTable[g_Continent_AF][29][g_indexSound] = 30;        // F172581A    -7    35    172581 Tanzania
  232.  
  233. g_SoundTable[g_Continent_AF][30][g_indexLat] = -7;
  234. g_SoundTable[g_Continent_AF][30][g_indexLong] = 35;
  235. g_SoundTable[g_Continent_AF][30][g_indexSound] = 31;        // F172582A    -7    35    172582 Tanzania
  236.  
  237. g_SoundTable[g_Continent_AF][31][g_indexLat] = 34;
  238. g_SoundTable[g_Continent_AF][31][g_indexLong] = 9;
  239. g_SoundTable[g_Continent_AF][31][g_indexSound] = 32;        // F172587A    34    9    172587 Tunisia (+)
  240.  
  241. g_SoundTable[g_Continent_AF][32][g_indexLat] = 2;
  242. g_SoundTable[g_Continent_AF][32][g_indexLong] = 32;
  243. g_SoundTable[g_Continent_AF][32][g_indexSound] = 33;        // F172593A    2    32    172593 Uganda
  244.  
  245. g_SoundTable[g_Continent_AF][33][g_indexLat] = -2;
  246. g_SoundTable[g_Continent_AF][33][g_indexLong] = 15;
  247. g_SoundTable[g_Continent_AF][33][g_indexSound] = 34;        // F172610A    -2    15    172610 Congo
  248.  
  249. g_SoundTable[g_Continent_AF][34][g_indexLat] = -19;
  250. g_SoundTable[g_Continent_AF][34][g_indexLong] = 30;
  251. g_SoundTable[g_Continent_AF][34][g_indexSound] = 35;        // F172614A    -19    30    172614 Zimbabwe
  252.  
  253. g_SoundTable[g_Continent_AF][35][g_indexLat] = -1;
  254. g_SoundTable[g_Continent_AF][35][g_indexLong] = 15;
  255. g_SoundTable[g_Continent_AF][35][g_indexSound] = 36;        // F172934A    -1    15    172934 Congo
  256.  
  257. g_SoundTable[g_Continent_AF][36][g_indexLat] = 9;
  258. g_SoundTable[g_Continent_AF][36][g_indexLong] = 2;
  259. g_SoundTable[g_Continent_AF][36][g_indexSound] = 37;        // F172937A    9    2    172937 Benin
  260.  
  261. g_SoundTable[g_Continent_AF][37][g_indexLat] = 35;
  262. g_SoundTable[g_Continent_AF][37][g_indexLong] = 33;
  263. g_SoundTable[g_Continent_AF][37][g_indexSound] = 38;        // F172943A    35    33    172943 Cyprus (++)
  264.  
  265. g_SoundTable[g_Continent_AF][38][g_indexLat] = 12;
  266. g_SoundTable[g_Continent_AF][38][g_indexLong] = -15;
  267. g_SoundTable[g_Continent_AF][38][g_indexSound] = 39;        // F172945A    12    -15    172945 Guinea Bissau
  268.  
  269. g_SoundTable[g_Continent_AF][39][g_indexLat] = 5;
  270. g_SoundTable[g_Continent_AF][39][g_indexLong] = 45;
  271. g_SoundTable[g_Continent_AF][39][g_indexSound] = 40;        // F172947A    5    45    172947 Somalia (+)
  272.  
  273. g_SoundTable[g_Continent_AF][40][g_indexLat] = 32;
  274. g_SoundTable[g_Continent_AF][40][g_indexLong] = 35;
  275. g_SoundTable[g_Continent_AF][40][g_indexSound] = 41;        // F172955A    32    35    172955 Israel (++)
  276.  
  277. g_SoundTable[g_Continent_AF][41][g_indexLat] = 32;
  278. g_SoundTable[g_Continent_AF][41][g_indexLong] = 35;
  279. g_SoundTable[g_Continent_AF][41][g_indexSound] = 42;        // F172956A    32    35    172956(e) Israel (++)
  280.  
  281. g_SoundTable[g_Continent_AF][42][g_indexLat] = 33;
  282. g_SoundTable[g_Continent_AF][42][g_indexLong] = 36;
  283. g_SoundTable[g_Continent_AF][42][g_indexSound] = 43;        // F172968A    33    36    172968 Lebanon (++)
  284.  
  285. g_SoundTable[g_Continent_AF][43][g_indexLat] = 25;
  286. g_SoundTable[g_Continent_AF][43][g_indexLong] = 45;
  287. g_SoundTable[g_Continent_AF][43][g_indexSound] = 44;        // F172975A    25    45    172975 Saudi Arabia (+)
  288.  
  289. g_SoundTable[g_Continent_AF][44][g_indexLat] = -22;
  290. g_SoundTable[g_Continent_AF][44][g_indexLong] = 24;
  291. g_SoundTable[g_Continent_AF][44][g_indexSound] = 45;        // F174186A    -22    24    174186 Botswana
  292.  
  293. g_SoundTable[g_Continent_AF][45][g_indexLat] = -22;
  294. g_SoundTable[g_Continent_AF][45][g_indexLong] = 17;
  295. g_SoundTable[g_Continent_AF][45][g_indexSound] = 46;        // F178866A    -22    17    178866 Namibia
  296.  
  297. g_SoundTable[g_Continent_AF][46][g_indexLat] = -21;
  298. g_SoundTable[g_Continent_AF][46][g_indexLong] = 58;
  299. g_SoundTable[g_Continent_AF][46][g_indexSound] = 47;        // F548799A    -21    58    548799 Mauritius
  300.  
  301. g_SoundTable[g_Continent_AF][47][g_indexLat] = 27;
  302. g_SoundTable[g_Continent_AF][47][g_indexLong] = 29;
  303. g_SoundTable[g_Continent_AF][47][g_indexSound] = 48;        // F557109A    27    29    557109 Egypt (+)
  304.  
  305.  
  306.  
  307.